﻿using System;
using System.Collections;

namespace Eneta.Portal.Forum.Rss
{
    [Serializable]
    public class RssChannelCollection : CollectionBase
    {
        // Methods
        public int Add(RssChannel channel)
        {
            return base.List.Add(channel);
        }

        public bool Contains(RssChannel rssChannel)
        {
            return base.List.Contains(rssChannel);
        }

        public void CopyTo(RssChannel[] array, int index)
        {
            base.List.CopyTo(array, index);
        }

        public int IndexOf(RssChannel rssChannel)
        {
            return base.List.IndexOf(rssChannel);
        }

        public void Insert(int index, RssChannel channel)
        {
            base.List.Insert(index, channel);
        }

        public void Remove(RssChannel channel)
        {
            base.List.Remove(channel);
        }

        // Properties
        public RssChannel this[int index]
        {
            get
            {
                return (RssChannel)base.List[index];
            }
            set
            {
                base.List[index] = value;
            }
        }
    }
}
